updating oE new_from_kvpairs
new_from_kvpairs
include map.e namespace map public function new_from_kvpairs(sequence kv_pairs)
converts a set of key:value pairs to a map.
Parameters:
- kv_pairs : A seqeuence containing any number of subsequences that have the format {KEY, VALUE}. These are loaded into a new map which is then returned by this function.
Returns:
A map, containing the data from kv_pairs
Example 1:
map m1 = new_from_kvpairs( { { "application", "Euphoria" }, { "version", "4.0" }, { "genre", "programming language" }, { "crc", 0x4F71AE10 } }) v = map:get(m1, "application") --> "Euphoria"
Not Categorized, Please Help
|